import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App.tsx";
import "./index.css";
import "reset.css";
import { HashRouter } from "react-router-dom";
import { ConfigProvider } from "antd";
import Cloud from "leancloud-storage";
import { BASE, ID, KEY } from "./config/index.ts";
import { Provider } from "react-redux";
import store from "./store/index.ts";
Cloud.init({
  appId: ID,
  appKey: KEY,
  serverURL: BASE,
});

ReactDOM.createRoot(document.getElementById("root")!).render(
  <React.StrictMode>
    <HashRouter>
      <ConfigProvider
        theme={{
          token: {
            colorPrimary: "#00b96b",
            colorLink: "#00b96b",
          },
        }}
      >
        <Provider store={store}>
          <App />
        </Provider>
      </ConfigProvider>
    </HashRouter>
  </React.StrictMode>
);
